{include file="public/nheader" /}
<div class="layui-fluid layui-bg-white">
    <form action="{:url()}" class="layui-form layui-form-fixed">
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>物料名称
            </label>
            <div class="layui-input-block">
                <input type="text" name="title" required="" lay-verify="required" autocomplete="off" class="layui-input"
                    value="{$row.title|default=''}" placeholder="请填写用户名称、备注">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>标记类型
            </label>
            <div class="layui-input-block">
                <input type="radio" required="" lay-verify="required" name="type" value="1" title="普通物料" {if
                    !empty($row.type) && $row.type==1}checked{/if}>
                <input type="radio" required="" lay-verify="required" name="type" value="2" title="收银机" {if
                    !empty($row.type) && $row.type==2}checked{/if}>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>分组
            </label>
            <div class="layui-input-block">
                <select name="groups" lay-search>
                    <option value="">身份类型</option>
                    {foreach $grouplist as $k => $v}
                    <option value="{$k}" {if !empty($row['groups']) && $row['groups']==$k}selected{/if}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>标准店
            </label>
            <div class="layui-input-block">
                <input type="number" name="default_num" required="" lay-verify="required" autocomplete="off"
                    class="layui-input" value="{$row.default_num|default=''}" placeholder="请填写用户名称、备注">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>精品店
            </label>
            <div class="layui-input-block">
                <input type="number" name="default_num2" required="" lay-verify="required" autocomplete="off"
                    class="layui-input" value="{$row.default_num2|default=''}" placeholder="请填写用户名称、备注">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>旗舰店
            </label>
            <div class="layui-input-block">
                <input type="number" name="default_num3" required="" lay-verify="required" autocomplete="off"
                    class="layui-input" value="{$row.default_num3|default=''}" placeholder="请填写用户名称、备注">
            </div>
        </div>
        <div class="layui-footer layui-form-item layui-center ">
            <input type="hidden" value="{$row['id']|default='0'}" name="id" />
            <button class="layui-btn" lay-filter="submitIframe" type="button" lay-submit>提交</button>
            <button class="layui-btn layui-btn-primary" type="button" sa-event="closeDialog">取消</button>
        </div>
    </form>
</div>
{include file="public/nfooter" /}